package contatos.view;

import javax.swing.JMenuItem;

public class MainView extends javax.swing.JFrame {

    /**
     * Creates new form MainView
     */
    public MainView() {
        initComponents();
        this.setLocationRelativeTo(this.getParent());
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        menuItemAdicionar = new javax.swing.JMenuItem();
        menuItemListarPessoas = new javax.swing.JMenuItem();
        menuItemImportarXML = new javax.swing.JMenuItem();
        menuItemSair = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Cadastro de pessoas");

        jMenu1.setText("Opções");

        menuItemAdicionar.setText("Adicionar");
        jMenu1.add(menuItemAdicionar);

        menuItemListarPessoas.setText("Listar pessoas");
        jMenu1.add(menuItemListarPessoas);

        menuItemImportarXML.setText("Importar XML");
        jMenu1.add(menuItemImportarXML);

        menuItemSair.setText("Sair");
        jMenu1.add(menuItemSair);

        jMenuBar1.add(jMenu1);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 279, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    public JMenuItem getMenuItemAdicionar() {
        return menuItemAdicionar;
    }

    public JMenuItem getMenuItemListarPessoas() {
        return menuItemListarPessoas;
    }

    public JMenuItem getMenuItemImportarXML(){
        return menuItemImportarXML;
    }
    
    public JMenuItem getMenuItemSair() {
        return menuItemSair;
    }

 
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem menuItemAdicionar;
    private javax.swing.JMenuItem menuItemImportarXML;
    private javax.swing.JMenuItem menuItemListarPessoas;
    private javax.swing.JMenuItem menuItemSair;
    // End of variables declaration//GEN-END:variables
}
